﻿namespace SimpleSchedule.Models.Configs
{
    public class Config
    {
        public int DefaultDays { get; set; }
        public int AutoHide { get; set; }
        public AuthModel? Auth { get; set; }
        public QuickRemarkModel? QuickRemark { get; set; }
        public class QuickRemarkModel
        {
            public string? Brands { get; set; }
            public List<string> BrandList => (Brands ?? "").Split('|').ToList();
            public string? Specs { get; set; }
            public List<string> SpecList => (Specs ?? "").Split('|').ToList();
            public string? Staffs { get; set; }
            public List<string> StaffList => (Staffs ?? "").Split('|').ToList();
        }
        public class AuthModel
        {
            public string? UserName { get; set; }
            public string? Password { get; set; }
        }
    }
}
